
<%@page import="java.util.List"%>
<%@page import="database.DBClass"%>
<%@page import="model.PegawaiBean"%>
<%@ include file="header.jsp"%>
<% PegawaiBean bean = new PegawaiBean();
    //get request from servlet if data is invalid

    if (request.getAttribute("updateuser") != null) {
        bean = (PegawaiBean) request.getAttribute("updateuser");
    }
    if (session.getAttribute("username") == null&&session.getAttribute("pass") == null) {

        RequestDispatcher rd = request.getRequestDispatcher("login.jsp");
        rd.forward(request, response);
    }

%>

<!-- start: Content -->
<div id="content" class="span10">


    <ul class="breadcrumb">
        <li>
            <i class="icon-home"></i>
            <a href="index.html">Home</a>
            <i class="icon-angle-right"></i> 
        </li>
        <li>
            <i class="icon-edit"></i>
            <a href="#">Forms</a>
        </li>
    </ul>



    <div class="row-fluid sortable">
        <div class="box span12">
            <div class="box-header" data-original-title>
                <h2><i class="halflings-icon edit"></i><span class="break"></span>Form Pegawai</h2>

            </div>
            <div class="box-content">
                <form class="form-horizontal" method="post" action="AccountServlet">
                    <fieldset>
                        <div class="control-group success">
                            <div class="controls">
                                <input class="input-xlarge" type="hidden" id="id" name="id" value="<%=session.getAttribute("id")%>" >

                            </div>
                        </div>
                        <div class="control-group success">
                            <label class="control-label" for="password">Username:</label>
                            <div class="controls">
                                <input class="input-xlarge" type="text" id="username" name="usernames" value="<%=session.getAttribute("username")%>" >

                            </div>
                        </div>

                        <div class="control-group success">
                            <label class="control-label" for="password">Password Lama:</label>
                            <div class="controls">
                                <input class="input-xlarge" type="password" id="passwordLama" name="passwordLama" >

                            </div>
                        </div>
                        <div class="control-group success">
                            <label class="control-label" for="password">Password Baru:</label>
                            <div class="controls">
                                <input class="input-xlarge" type="password" id="passwordBaru" name="passwordBaru" >

                            </div>
                        </div>
                        <div class="control-group success">
                            <label class="control-label" for="password">Konfirmasi Password Baru:</label>
                            <div class="controls">
                                <input class="input-xlarge" type="password" id="passwordBaru" name="KpasswordBaru" >

                            </div>
                        </div>

                        <div class="form-actions">
                            <button type="submit" class="btn btn-primary" name="action" value="<%=(bean.getAction())%>"><%=(bean.getAction())%></button>

                        </div>
                    </fieldset>
                </form>

            </div>
        </div><!--/span-->

    </div><!--/row-->




</div><!--/.fluid-container-->

<!-- end: Content -->
</div><!--/#content.span10-->
</div><!--/fluid-row-->

<%@ include file="footer.jsp"%>